package com.example.OJ.compile;

public class Answer {
    //0表示编译运行都正确，1表示编译错误，2表示运行错误（抛出异常）,3表示没这个题目,4表示用户提交不合法
    private int error;
    private String reason;
    private String stdout;
    private String stderr;

    public String getStdout() {
        return stdout;
    }

    public void setStdout(String stdout) {
        this.stdout = stdout;
    }

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "error=" + error +
                ", reason='" + reason + '\'' +
                '}';
    }
}
